mysql: find sockets on default mariadb installation on Debian - #934
Open
mueller-ma wants to merge 2 commits into
Open
mueller-ma wants to merge 2 commits into
mueller-ma wants to merge 2 commits into
Conversation
The current auto-detect command doesn't work on a default MariaDB installation on Debian for two reasons: - The account is called mariadbd - No "socket" is in the CMD printed by ps As the default socket is `/run/mysqld/mysqld.sock`, use all sockets in `/run/mysqld` to support multi-instance setups. From new Debian installation: ``` root@ca9b0a452ef5:/# grep socket -Ri /etc/mysql/ /etc/mysql/my.cnf:# Port or socket location where to connect /etc/mysql/my.cnf:socket = /run/mysqld/mysqld.sock /etc/mysql/my.cnf.fallback:# Remember to edit /etc/mysql/debian.cnf when changing the socket location. /etc/mysql/debian.cnf:# anyway thanks to unix socket authentication and hence /etc/mysql/mariadb.cnf:# Port or socket location where to connect /etc/mysql/mariadb.cnf:socket = /run/mysqld/mysqld.sock ```
andrea-vaccaro
suggested changes
Sep 25, 2026
andrea-vaccaro
left a comment
There was a problem hiding this comment.
Is it possible to preserves the "mysql" name when exactly one socket is found and only use paths for multiple sockets so that existing service names are kept?
Contributor
Author
|
I pushed a commit that keeps the default name. |
Contributor
Author
|
Failed pipeline seems unrelated to me: |
andrea-vaccaro
approved these changes
Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
General information
The current auto-detect command doesn't work on a default MariaDB installation on Debian for two reasons:
Bug reports
No output of the current auto-detect code:
Proposed changes
As the default socket is
/run/mysqld/mysqld.sock, use all sockets in/run/mysqldto support multi-instance setups.From new Debian installation: